# export ARCH=arm64#设置平台架构
# export CROSS_COMPILE=aarch64-linux-gnu-#交叉编译器前缀


KERN_VER = $(shell uname -r)
KERN_DIR = /lib/modules/$(KERN_VER)/build	


obj-m := llseek.o
KDIR :=/home/topeet/Linux/linux_sdk/kernel    #这里是你的内核目录                                                                                                                            
PWD ?= $(shell pwd)



all:
	make -C $(KERN_DIR) M=$(PWD) modules    #make操作
	gcc app_llseek.c -o app_llseek.out  
clean:
	make -C $(KERN_DIR) M=$(PWD) clean    #make clean操作
